package com.treasure.mall.biz.repository.life;

import com.treasure.mall.biz.base.JpaSearchableRepository;
import com.treasure.mall.biz.entity.life.ShopPO;
import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 *
 * <p>
 * +---------------------------------------------------------
 * * @package: com.treasure.mall.biz.repository.life
 * * @author: guomw (guomwchen@foxmail.com)
 * * @date: 2020/10/13 2:30 下午
 * * @since: V1.0.0
 * +---------------------------------------------------------
 * 注意：本内容仅限于内部传阅，禁止外泄以及用于其他的商业目的
 * 
 */
@Repository
public interface ShopRepository extends JpaSearchableRepository<ShopPO, Long> {

    @Query("select p from ShopPO  p where p.palmEyeService=true ")
    List<ShopPO> findByPalmEyeServiceIsTrue();

    /**
     * 修复
     *
     * @return
     */
    @Query("select p from ShopPO  p where p.repairService=true ")
    List<ShopPO> findByRepairServiceIsTrue();

}
